body[data-theme=red] {
  --header-bg-color: #d00a0a;
  --header-font-color: #ffffff;
  --main-bg-color: #ec8686;
  --main-font-color1: #ffffff;
  --main-font-color2: #ffffff;
}

body[data-theme=pink] {
  --header-bg-color: #edbbcf;
  --header-font-color: #dc33ac;
  --main-bg-color: #f5e3ea;
  --main-font-color1: #c21658;
  --main-font-color2: #a9183a;
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

.not-support {
  display: none;
  text-align: center;
  padding: 30px 0;
  color: var(--main-font-color2);
}

.layout {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.header {
  position: relative;
  height: 60px;
  line-height: 60px;
  background: var(--header-bg-color);
  box-shadow: 0 1px 2px 0 var(--header-bg-color);
}

.app-name {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 60px;
  line-height: 60px;
  padding-left: 10px;
}

.app-name svg {
  width: 24px;
  vertical-align: middle;
  cursor: pointer;
}

.app-name span {
  margin-left: 10px;
  vertical-align: middle;
  font-size: 24px;
  font-weight: 700;
  color: var(--header-font-color);
  cursor: pointer;
}

.theme {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row-reverse;
  position: absolute;
  top: 0;
  right: 0;
  height: 60px;
  line-height: 60px;
  padding-right: 20px;
}

.theme-item {
  flex: 0 0 20px;
  height: 20px;
  margin: 20px 6px;
  border: 1px solid #ffffff;
  cursor: pointer;
}

.main {
  display: flex;
  position: relative;
  height: calc(100% - 60px);
  background: var(--main-bg-color);
}

.love-time-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.love-declaration > h4 {
  font-size: 20px;
  color: var(--main-font-color1);
}

.love-declaration > p {
  font-size: 16px;
  text-indent: 32px;
  color: var(--main-font-color1);
}
.love-time {
  font-size: 20px;
  color: var(--main-font-color2);
  z-index: 3;
}

.love-time > span {
  font-size: 40px;
  font-weight: 700;
  color: var(--main-font-color2);
}

/* 不支持的设备 (宽度小于350px) */
@media only screen and (max-width: 300px) {
  .not-support {
    display: block;
  }
  .layout {
    display: none;
  }
}

  /* 小型设备 (手机, 宽度大于300px且小于600px) */
  @media only screen and (min-width: 300px) and (max-width: 600px) {
  .love-declaration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 10px 100px 10px;
    overflow: auto;
    z-index: 2;
  }

  .love-time {
    position: absolute;
    bottom: 2%;
    left: 2%;
    width: 96%;
    text-align: center;
    background-color: rgb(255, 255, 255, 49%);
  }

  .love-time > .br {
    display: block;
  }

  .love-tree {
    position: absolute;
    bottom: 0%;
    width: 100%;
    z-index: 1;
  }

  .love-tree > img {
    width: 100%;
    filter: blur(1px);
  }
}

/* 中型设备 (平板和手机, 大于600px且小于992px) */
@media only screen and (min-width: 600px) and (max-width: 992px) {
  .love-declaration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 30px 100px 30px;
    overflow: auto;
    z-index: 2;
  }

  .love-declaration > h4 {
    font-size: 28px;
    color: var(--main-font-color1);
  }

  .love-declaration > p {
    font-size: 24px;
    text-indent: 48px;
  }

  .love-time {
    position: absolute;
    bottom: 2%;
    left: 2%;
    width: 96%;
    text-align: center;
    background-color: rgb(255 255 255 / 49%);
  }

  .love-time > .br {
    display: block;
  }

  .love-tree {
    position: absolute;
    bottom: 0%;
    width: 100%;
    z-index: 1;
  }

  .love-tree > img {
    width: 100%;
    filter: blur(1px);
  }
}

/* 大型设备 (笔记本电脑和台式机, 大于992px且小于1200px) */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .love-declaration {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 50%;
    z-index: 2;
  }

  .love-time {
    position: absolute;
    bottom: 6%;
    left: 4%;
  }

  .love-tree {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 40%;
    transform: translateY(-50%);
  }

  .love-tree > img {
    width: 100%;
  }
} 

/* 超大型设备 (大型笔记本和台式机, 大于1200px) */
@media only screen and (min-width: 1200px) {
  .love-time-wrap {
    position: relative;
    width: 1300px;
    height: 800px;
    margin: 0 auto;
  }

  .love-declaration {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 30%;
    height: 60%;
    z-index: 2;
  }

  .love-time {
    position: absolute;
    bottom: 10%;
    left: 4%;
    width: 60%;
    height: 100px;
    line-height: 100px;
  }

  .love-tree {
    position: absolute;
    bottom: 5%;
    right: 12%;
    width: 40%;
    height: 100%;
  }

  .love-tree > img {
    height: 100%;
  }
}
